import ultralytics

if __name__ == '__main__':
    model_path = 'last.pt'
    model = ultralytics.YOLO(model_path)
    result = model.train(data='dataset/ultralytics.yaml', epochs=100, imgsz=640, pretrained=False,resume=True)